package com.linwen.javase.desgin_pattern.structure.decorator;

/**
 * @ClassName DecoratorImpl
 * @Description
 * @Author lin
 * @Date 2022/6/21 下午11:53
 * @Version V1.0
 */
public class DecoratorImpl extends Decorator{

    public DecoratorImpl(BaseService baseService) {
        super(baseService);
    }

    @Override
    public void test() {
        super.test();
        addFunction();
    }
    private void addFunction() {
        System.out.println("一些装饰方法");
    }
}
